package com.aspose.cells;

public class ColorScale {
   ConditionalFormattingValue a = null;
   ConditionalFormattingValue b = null;
   ConditionalFormattingValue c = null;
   zakp d;
   zakp e;
   zakp f;
   private Workbook g;
   private FormatCondition h;

   ColorScale(Workbook book, FormatCondition fc) {
      this.g = book;
      this.h = fc;
      this.f = new zakp(false);
      this.e = new zakp(false);
      this.d = new zakp(false);
   }

   void a(ColorScale var1, CopyOptions var2, int var3, int var4) {
      if (var1.c != null) {
         this.c = new ConditionalFormattingValue(this.h);
         this.c.a(var1.c, var1.g.getWorksheets(), this.g.getWorksheets(), var2, var3, var4);
      }

      if (var1.b != null) {
         this.b = new ConditionalFormattingValue(this.h);
         this.b.a(var1.b, var1.g.getWorksheets(), this.g.getWorksheets(), var2, var3, var4);
      }

      if (var1.a != null) {
         this.a = new ConditionalFormattingValue(this.h);
         this.a.a(var1.a, var1.g.getWorksheets(), this.g.getWorksheets(), var2, var3, var4);
      }

      this.e.f(var1.e);
      this.d.f(var1.d);
      this.f.f(var1.f);
   }

   static ColorScale a(Workbook var0, FormatCondition var1) {
      ColorScale var2 = new ColorScale(var0, var1);
      var2.a = new ConditionalFormattingValue(var1, 2, (Object)null);
      var2.b = new ConditionalFormattingValue(var1, 5, 50);
      var2.c = new ConditionalFormattingValue(var1, 1, (Object)null);
      zakp var3 = new zakp(false);
      var3.a(2, zase.s("FFF8696B"));
      var2.b().f(var3);
      var3.a(2, zase.s("FFFFEB84"));
      var2.c().f(var3);
      var3.a(2, zase.s("FF63BE7B"));
      var2.d().f(var3);
      var2.g = var0;
      return var2;
   }

   public ConditionalFormattingValue getMinCfvo() {
      if (this.a == null) {
         this.a = new ConditionalFormattingValue(this.h, 2, (Object)null);
      }

      return this.a;
   }

   public ConditionalFormattingValue getMidCfvo() {
      if (this.b == null) {
         this.b = new ConditionalFormattingValue(this.h, 5, (Object)null);
      }

      return this.b;
   }

   boolean a() {
      return this.b != null && (this.b.f() != null || this.b.getValue() != null);
   }

   public ConditionalFormattingValue getMaxCfvo() {
      if (this.c == null) {
         this.c = new ConditionalFormattingValue(this.h, 1, (Object)null);
      }

      return this.c;
   }

   public Color getMinColor() {
      return this.d.b(this.g);
   }

   public void setMinColor(Color value) {
      this.d.a(2, value.toArgb());
   }

   public Color getMidColor() {
      return this.e.b(this.g);
   }

   public void setMidColor(Color value) {
      this.e.a(2, value.toArgb());
   }

   public Color getMaxColor() {
      return this.f.b(this.g);
   }

   public void setMaxColor(Color value) {
      this.f.a(2, value.toArgb());
   }

   zakp b() {
      return this.d;
   }

   void a(zakp var1) {
      this.d = var1;
   }

   zakp c() {
      return this.e;
   }

   void b(zakp var1) {
      this.e = var1;
   }

   zakp d() {
      return this.f;
   }

   void c(zakp var1) {
      this.f = var1;
   }
}
